//
//  XJCommunityHistoryModel.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/1.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJCommunityHistoryModel.h"

@implementation XJCommunityHistoryButtonModel

@end

@implementation XJCommunityHistoryModel

// 6-4 mj官方示例有问题,先用最原始的方式做。
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.service_id = value;
    }
    
    if ([key isEqualToString:@"button"]) {
        NSDictionary *buttonDic = value;
        self.buttonTitle = buttonDic[@"text"];
        self.buttonCode = buttonDic[@"code"];
    }
}

@end

